package com.foreknow.elmboot.service;

import com.foreknow.elmboot.po.Order;
import com.foreknow.elmboot.po.OrderDetailet;

import java.util.List;

public interface OrderService {
    /**
     * 根据orderId查询订单信息
     * @param orderId
     * @return
     */
    public Order getOrdersById(Integer orderId);
    /**
     * 创建订单
     * @param order
     * @return
    */
    public int CreateOrder(Order order);
    /**
     * 根据user列出订单信息
     * @param userId
     * @return
     */
    public List<Order> listOrderByUserId(String userId);

    /**
     * 根据orderId更新orderState
     * @param orderId
     * @return
     */
    public int updateOrderByOrderId(Integer orderId);
}
